<!-- eslint-disable vue/multi-word-component-names -->
<template>
    <div class="wrap">
        <div class="top">
            <!-- 首页顶部 -->
            <img src="../../assets/images/home-header.png" alt="">
            <p class="top_p">远卓农牧智慧管理平台</p>
            <div class="top_left">
                <dv-decoration3 style="width:100%;height:100%;"/>
            </div>
            <div class="top_right">
                <dv-decoration3 :reverse="true" style="width:100%;height:100%;"/>
            </div>
            <div class="top_box">
                <TimeDisplay></TimeDisplay>
            </div>
        </div>
        <div class="box">
            <!-- 首页box -->
            <div class="left">
                <!-- 首页左侧 -->
                <HomeLeft></HomeLeft>
            </div>
            <div class="middle">
                <!-- 首页中间 -->
                <HomeMiddle></HomeMiddle>
            </div>
            <div class="right">
                <!-- 首页右侧 -->
                <HomeRight></HomeRight>
            </div>
        </div>
    </div>
</template>


<script lang="ts" setup>
import HomeLeft from '../../components/HomeLeft.vue';
import HomeMiddle from '../../components/HomeMiddle.vue';
import HomeRight from '../../components/HomeRight.vue';
import TimeDisplay from "../../components/Middle/currentTime.vue";


</script>

<style scoped>

.wrap {
    width: 100vw;
    height: 100vh;
    /* background-image: url(../../assets/images/bg.jpg);
    background-repeat: no-repeat;
    background-size: 100% 100%; */
    background: linear-gradient(to bottom,#00183e,#002d5b);
}

/* 头部 */
.top {
    width: 100vw;
    height: 10vh;
    position: relative;
}

.top img {
    width: 100%;
    height: 100%;
    /* background: #00183e; */
}

.top .top_p {
    position: absolute;
    font-size:calc(100vw * 37 / 1920);
    font-weight: bold;
    left: 40vw;
    top: 1vh;
    color: aqua;
    background: none;
}

/* .TimeDisplay {
  width: 100%;
  height: 7vh;
  border: none;
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  border-top: 2px solid;
  border-image: linear-gradient(
      to right,
      transparent 20%,
      #00b7de 20%,
      #00b7de 80%,
      transparent 80%
    )
    1 / auto 2px stretch;
} */

.top_left {
    width: 15vw;
    height: 4vh;
    /* background: cornflowerblue; */
    position: absolute;
    left: 14vw;
    top: 4vh;
}

.top_left img {
    width: 100%;
    height: 100%;
}

.top_right {
    width: 15vw;
    height: 4vh;
    /* background: cornflowerblue; */
    position: absolute;
    top: 4vh;
    right: 14vw;
}

.top_right img {
    width: 100%;
    height: 100%;
    transform: rotate(-180deg);
}
.top_right img {
    width: 100%;
    height: 100%;
    transform: rotate(-180deg);
}

.top_box {
    position: absolute;
    right: 1vw;
    top: 5vh;
}

/* 首页box */
.box {
    width: 100vw;
    height: 90vh;
}

/* 左侧 */
.box .left {
    width: 25vw;
    height: 90vh;
    /* background: aquamarine; */
    float: left;
    /* background: linear-gradient(to bottom,#00183e,#002d5b); */
}

/* 中间 */
.box .middle {
    width: 50vw;
    height: 90vh;
    /* background: yellow; */
    float: left;
    /* background: linear-gradient(to bottom,#00183e,#002d5b); */
}

/* 右侧 */
.box .right {
    width: 25vw;
    height: 90vh;
    /* background: darkgreen; */
    float: right;
    /* background: linear-gradient(to bottom,#00183e,#002d5b); */
}



</style>